package cn.chinaflame.pagodas.enums;

/**
 * @author created by boming
 * @date 2018年1月4日 上午10:09:25
 **/
public enum CodeEnum {

    SUCCESS("OK", "成功"),
    FAIL("ERROR", "系统异常"),
    SESSION_INVLID("SESSION_INVALID", "session失效"),
    SESSION_EXPIRED("SESSION_EXPIRED", "session过期"),
    SESSION_USER_TYPE_ERR("USER_TYPE_INVALID", "无效的用户类型"),
    SESSION_USER_OBTAIN_ERROR("USER_OBTAIN_ERROR", "获取登录用户信息异常"),
    /*寻灯失败，提示库存不足*/
    LIGHT_SEARCH_FAILED("LIGHT_SEARCH_FAILED", "库存不足");

    private String code;
    private String msg;

    CodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
